package com.ruoyi.orders.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单管理对象 orders
 * 
 * @author King
 * @date 2024-07-04
 */
public class Orders extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单编号 */
    private Long ordersId;

    /** 订单日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "订单日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date ordersData;

    /** 金额 */
    @Excel(name = "金额")
    private String ordersPrice;

    /** 购买者ID */
    @Excel(name = "购买者ID")
    private Long ordersBuyId;

    /** 销售者ID */
    @Excel(name = "销售者ID")
    private Long ordersSaleId;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long ordersGoodsId;

    public void setOrdersId(Long ordersId) 
    {
        this.ordersId = ordersId;
    }

    public Long getOrdersId() 
    {
        return ordersId;
    }
    public void setOrdersData(Date ordersData) 
    {
        this.ordersData = ordersData;
    }

    public Date getOrdersData() 
    {
        return ordersData;
    }
    public void setOrdersPrice(String ordersPrice) 
    {
        this.ordersPrice = ordersPrice;
    }

    public String getOrdersPrice() 
    {
        return ordersPrice;
    }
    public void setOrdersBuyId(Long ordersBuyId) 
    {
        this.ordersBuyId = ordersBuyId;
    }

    public Long getOrdersBuyId() 
    {
        return ordersBuyId;
    }
    public void setOrdersSaleId(Long ordersSaleId) 
    {
        this.ordersSaleId = ordersSaleId;
    }

    public Long getOrdersSaleId() 
    {
        return ordersSaleId;
    }
    public void setOrdersGoodsId(Long ordersGoodsId) 
    {
        this.ordersGoodsId = ordersGoodsId;
    }

    public Long getOrdersGoodsId() 
    {
        return ordersGoodsId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("ordersId", getOrdersId())
            .append("ordersData", getOrdersData())
            .append("ordersPrice", getOrdersPrice())
            .append("ordersBuyId", getOrdersBuyId())
            .append("ordersSaleId", getOrdersSaleId())
            .append("ordersGoodsId", getOrdersGoodsId())
            .toString();
    }
}
